package it.poste.il.compensatore.utilities;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * Class that load queries SQL.
 */
public class LoadQueriesSQL {
	private Properties properties;

	/**
	 * Constructor that load the file of properties with all the queries SQL.
	 */
	public LoadQueriesSQL () {
		this.properties = new Properties();
	    InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("queriesSQL.properties");
	    try {
			properties.load(inputStream);
		} catch (IOException e) {
			e.printStackTrace();
		} 
	}

	/**
	 * Take the Properties.
	 * @return Properties The Properties.
	 */
	public Properties getProperties() {
		return properties;
	}

	/**
	 * Set the Properties.
	 * @param properties The properties to set.
	 * @return void
	 */
	public void setProperties(Properties properties) {
		this.properties = properties;
	}
    
}
